﻿#ifndef BASEWIDGET_IDAWIDGETHELPER_H
#define BASEWIDGET_IDAWIDGETHELPER_H

#include <QString>
#include "API_BaseWidget.h"

class QPushButton;
class QTableWidget;
class QColor;

#define IdaWidgetHelperInstance BaseWidget::IdaWidgetHelper::getInstance()

namespace BaseWidget
{
    class API_BASEWIDGET IdaWidgetHelper
    {
    public:
        static IdaWidgetHelper* getInstance()
        {
            static IdaWidgetHelper m_instance;
            return &m_instance;
        }

        void setMainButtonStyle(QPushButton* button);

        void setTableWidgetStyle(QTableWidget* tableWidget);

        /// @brief 设置曲线选择按钮是否为选中状态
        /// @param pushButton 曲线选择按钮
        /// @param isChecked 是否为选中状态
        /// @param color 选中的颜色提示：红色-点击后未选择曲线，蓝色-点击后已选择曲线
        void setPushButtonSelcetBarCheckedState(QPushButton* pushButton, bool isChecked, const QColor& color); 

    };
}
#endif // BASEWIDGET_IDAWIDGETHELPER_H
